﻿package com.bizmlib.ui.composite
{
	import flash.events.Event;
	
	
	public class UICompositionItemEvent extends Event
	{
		public static const PRESS:String = "press";
		public static const RELEASE:String = "release";
		
		public static const RESIZE:String = "resizeInvoked";
		
		public static const DRAG_INVOKED:String = "dragInvoked";
		
		public static const SHOW_COMPLETE:String = "showComplete";
		public static const HIDE_COMPLETE:String = "hideComplete";
		
		
		private var __item:UICompositionItem;
		
		
		public function UICompositionItemEvent(type:String, item:UICompositionItem = undefined, bubbles:Boolean = true)
		{
			super(type, bubbles, true);
			
			__item = item;
		}
		
		
		public function get item():UICompositionItem
		{
			return __item;
		}
		
		
		override public function toString():String
		{
			//return "[UICompositionItemEvent	type=" + type + "]";
			return formatToString("UICompositionItemEvent", "type", "target", "item", "bubbles", "cancelable");
		}
	}
}